package com.yh.csx.event.store.mapstruct;

import com.yh.csx.event.store.event.dto.resp.AckEventResp;
import com.yh.csx.event.store.event.dto.resp.ErrorEventResp;
import com.yh.csx.event.store.gateway.event.dataobject.BizEventResultDo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhangsheng
 * @date 2021/8/23 16:55
 */
@Mapper(componentModel = "spring")
public interface EventResultMapStruct {
    EventResultMapStruct INSTANCE = Mappers.getMapper(EventResultMapStruct.class);

    BizEventResultDo convert(AckEventResp resp);

    BizEventResultDo convert(ErrorEventResp resp);
}
